<{include file="scenter/block/header.html"}>
<div class="ucenter_t">
    <ul>
        <li><a href="<{link ctl='scenter/upm/task:index'}>">分销任务管理</a></li>
        <li class="on">添加分销任务</li>
    </ul>
</div>
<div class="ucenter_c">
<form action="<{link ctl='scenter/upm/task:create'}>" mini-form="ucenter-form" method="post">
<table cellspacing="0" cellpadding="0" class="form">
    <tr><th><span class="red">*</span>标题：</th><td><input type="text" name="data[title]" value="<{$detail.title}>" class="input w-300"/></td></tr>
    <tr><th>封面图片：</th>
        <td>
            <input type="text" name="data[photo]" id="file_photo" value="<{$detail.photo}>" class="input w-300" <{if $detail.photo}>photo="<{$pager.img}>/<{$detail.photo}>"<{/if}>/>
            <input type="button" uploadbtn="#file_photo" value=" 选择文件 " />            
        </td>
    </tr>
    <tr><th>活动时间：</th>
        <td>
            <input type="text" name="data[stime]" value="" datetime="stime" class="input w-180" readonly/>~
            <input type="text" name="data[ltime]" value="" datetime="ltime" class="input w-180" readonly/>
            <span class="tip-comment">"0"或空不限</span>
         </td>
    </tr>
    <tr><th>任务说明：</th><td><textarea name="data[content]" class="textarea w-400"><{$detail.content}></textarea></td></tr>

    <tr><th>任务UV指标：</th>
        <td>
            <label>UV数:<input type="text" name="data[uv_num]" value="<{$detail.uv_num}>" class="input w-100"/></label>
            <label>积分:<input type="text" name="data[uv_credits]" value="<{$detail.uv_credits}>" class="input w-100"/></label>
            <label>现金:<input type="text" name="data[uv_moeny]" value="<{$detail.uv_moeny}>" class="input w-100"/></label>
            <span class="tip-comment">推荐新访客数量到达该值后获取奖励</span>            
        </td>
    </tr>
    <tr><th>预约奖励：</th>
        <td>
            <label>积分:<input type="text" name="data[yuyue_credits]" value="<{$detail.yuyue_credits}>" class="input w-100"/></label>
            <label>现金:<input type="text" name="data[yuyue_moeny]" value="<{$detail.yuyue_moeny}>" class="input w-100"/></label>
            <span class="tip-comment">每成功推荐一个预约后获取的奖励</span>
        </td>
    </tr>
    <tr><th>有效预约奖励：</th>
        <td>
            <label>积分:<input type="text" name="data[youxiao_credits]" value="<{$detail.youxiao_credits}>" class="input w-100"/></label>
            <label>现金:<input type="text" name="data[youxiao_moeny]" value="<{$detail.youxiao_moeny}>" class="input w-100"/></label>
            <span class="tip-comment">每成功推荐一个有效预约后获取的奖励</span>
        </td>
    </tr>
    <tr><th>成功量房奖励：</th>
        <td>
            <label>积分:<input type="text" name="data[liangfang_credits]" value="<{$detail.liangfang_credits}>" class="input w-100"/></label>
            <label>现金:<input type="text" name="data[liangfang_moeny]" value="<{$detail.liangfang_moeny}>" class="input w-100"/></label>
            <span class="tip-comment">每成功推荐一个成功量房后获取的奖励</span>
        </td>
    </tr>
    <tr><th>成功签单奖励：</th>
        <td>
            <label>积分:<input type="text" name="data[qiandan_credits]" value="<{$detail.qiandan_credits}>" class="input w-100"/></label>
            <label>现金:<input type="text" name="data[qiandan_moeny]" value="<{$detail.qiandan_moeny}>" class="input w-100"/></label>
            <span class="tip-comment">每成功推荐一个成功签单后获取的奖励</span>
        </td>
    </tr>
    <tr><th>状态：</th>
        <td>
        <label><input type="radio" name="data[audit]" value="1" <{if $detail.audit}>checked<{/if}>/>上线</label>&nbsp;
        <label><input type="radio" name="data[audit]" value="0" <{if !$detail.isauditopen}>checked<{/if}>/>下线</label>
        </td>
    </tr>
    <tr><th></th><td><input type="submit" value="提交数据" class="green_btn"/></td></tr>
</table>
</form>
</div>
<{include file="scenter/block/footer.html"}>